<tr>
<td><%= link_to truncate(trainee.nombre,20),trainee_historial_url(:trainee_id => trainee.id) %></td>
<td><%= truncate(trainee.email,20) %></td>
<td><%= trainee.pais %></td>
<td><%= trainee.telefono %></td>
    
<td><%= trainee.estado_trainee.descripcion %></td>

	<td style="text-align: center;"><%= link_to image_tag("preview-16x16.png", :border=>0, :title=>'Ver'), 
																							trainee %></td>
																							
</div>

<% get_mod do %>
	<td style="text-align: center;"><%= link_to image_tag("edit-16x16.png", :border=>0, :title=>'Editar'), 
																										 edit_trainee_path(trainee) %></td>

	<td style="text-align: center;"><%= link_to image_tag("delete-16x16.png", :border=>0, :title=>'Eliminar'), 
																							trainee, 
																							:confirm => 'Seguro que quiere eliminar?', 
																							:method => :delete
																							%></td>
<% end %>															
								
<td><%= if trainee.curriculum != nil then
					link_to image_tag("ver_cv.png", :border=>0, :title=>'Ver Curriculum'), curriculum_path(trainee.curriculum) 
        else 
        	get_mod do
        		link_to image_tag("add_cv.png", :border=>0, :title=>'Agregar Curriculum'), new_trainee_curriculum_path(trainee)
        	end
        end
     %></td>

</tr>
